Image processing of designated image portion

ABSTRACT

The invention intends, in preparing so-called ID photograph by cutting out an area from the image of a person, to obtain an appropriate area with simple operations. The method the invention comprises a designation step s 201  of designating a rectangle circumscribed about a face area on an original image including a human face, an acquisition step s 202  of acquiring the vertical length and the horizontal length of the rectangle designated by the designation step, and a determination step s 203  of determining a cutout area including the face area, based on the vertical length and the horizontal length.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to an image processing apparatus forextracting a partial area from an original image.

2. Related Background Art

In the image processing apparatus, there is frequently utilized afunction of cutting out a part of an input image and displaying suchcutout image. For example, in a system for preparing a photograph foruse in an ID card or the like, it is required to cut out a desired ornoticeable area, including the face, from the image data of the object,according to the dimension and the face fitting position determined foreach ID card and to display such cutout image. The technology forcutting out the noticeable area from the input image is disclosed forexample in the Japanese Patent Application Laid-Open No. 11-8814.

The technology disclosed in the Japanese Patent Application Laid-OpenNo. 11-8814 is to point the top of the head and the chin with the mouseand to calculate the cutout area in such a manner that the externalperiphery of the cutout area matches the actual vertical and horizontaldimensions of the output image when the coordinates of the pointed twopoints become equal to the actual dimension between the two pointsdesignated for output.

However the contour of the human face has smooth irregularities, and itis not easy, for the unskilled user, to select the two points, namelythe top of the head and the chin.

Also, while the output data define the length of face, the upper marginand the vertical and horizontal size of the photograph, the face isalways centered within the width of the output image so that the freedomof arrangement is limited. Also in consideration of the ease of datapreparation by the user, it is desirable to decrease the number of itemsto be designated for the output data.

SUMMARY OF THE INVENTION

In consideration of the foregoing, an object of the present invention isto resolve the above-mentioned drawbacks.

Another object of the present invention is to provide an imageprocessing method comprising:

-   -   a designation step of designating a rectangle circumscribed        about a face area on an original image including a human face;    -   an acquisition step of acquiring the vertical length and the        horizontal length of the rectangle designated by the designation        step; and    -   a determination step of de ter mining a cutout are a including        the face area, based on the vertical length and the horizontal        length.

Still other objects of the present invention, and the features thereof,will become fully apparent from the following detailed description whichis to be taken in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram showing hardware configuration of an imageprocessing system embodying the present invention;

FIG. 2 is a flow chart showing an image processing method constituting afirst embodiment;

FIG. 3 is a flow chart showing an image processing method constituting asecond embodiment;

FIG. 4 is a flow chart showing an image processing method constituting athird embodiment;

FIG. 5 is a view showing an example of the face area and the cutoutimage area in input object image data and in an output ID photographimage;

FIG. 6 is a view showing an example of a dialog box for designating theface area on the input image data;

FIG. 7 is a flow chart showing an image processing method constituting afourth embodiment;

FIGS. 8A, 8B, 8C and 8D are views showing the input object image dataand the output ID photograph image in the fourth embodiment;

FIG. 9 is a flow chart showing an image processing method constituting afifth embodiment; and

FIGS. 10A, 10B and 10C are views showing the input object image data andthe output ID photograph image in the fifth embodiment.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS First Embodiment

Hereinafter, the embodiments of the present invention will be explainedin detail with reference to the accompanying drawings.

FIG. 1 is a block diagram showing the hardware configuration of an imageprocessing system constituting the first embodiment of the presentinvention. The image processing system is principally composed of acentral processing unit (CPU) 1, a storage device 2, a keyboard 3, amouse 4, a display device 5, an image input device 6, an image outputdevice 7, and a program storage device 8 storing a computer program usedby the CPU 1 for executing the control sequence of the presentembodiment.

As an example of the image processing system having the above-describedconfiguration, there is conceived an ID photograph preparing system forentering an original image such as a portrait photograph from the imageinput device 6, acquiring a cutout area by the CPU 1 according to therules for the ID photograph stored in the storage device 2, allowing theuser to confirm the image on the display device 5 and to execute desiredimage processing on the image with the keyboard 3 or with the mouse 4,and printing the image with the image output device 7.

FIG. 2 is a flow chart showing the image processing method constitutingthe first embodiment of the present invention.

In the following there will be explained the process sequence of thepresent embodiment with reference to FIG. 2.

The original image entered from the image input device 6 is often widerthan the required ID photograph, so that the user is required select thenecessary area within such input image. The principal component of suchnecessary area is the face of the object, and the position and size ofthe face are important factors of the ID photograph. Thus, after theinput image to be used as the ID photograph is fixed, the CPU 1 issues acommand for calculating the necessary area (cutout area), and, inresponse, there is initiated the process shown in FIG. 2 for acquiringthe cutout area.

In response to the start command for the cutout area discriminatingprocess, the CPU 1 displays, on the display device 5, an operation imageas shown in FIG. 6, in order to cause the use to designate the face areaon the input image data. On the operation image shown in FIG. 6, thereare displayed the input original image and a rectangular mark indicatingthe face area. The user moves the rectangle or changes the size thereofby a dragging operation with the mouse 4, so as to set a designated areain which the rectangular mark is circumscribed about the face. Uponcompletion of the setting operation, the user clicks a completion buttonwith the mouse, and the CPU 1 awaits the completion to be informed.

Upon receiving the information for the completion of the settingoperation, the CPU 1 acquires coordinate information R1 of the face arearectangle (rectangle in the left-hand half in FIG. 5) set by the user onthe input image data (step S201):R 1=(X 11, Y 11)−(X 12, Y 12)

Then the CPU 1 acquires, from a data table held in advance in thestorage device 2, a real output dimension (w, h) of the ID photographand coordinate information R2 of the noticeable rectangular area(rectangle in the right-hand half in FIG. 5), namely an areacorresponding to the face area in such output, wherein:R 2=(X 21, Y 21)−(X 22, Y 22)

The CPU 1 determines, from R1 and R2, a size ratio D between the inputimage data and the actual output data of the ID photograph according tothe following expression:D=R 1 /R 2

The size ratio may be determined preferentially from the height or widthof the rectangular area, but the height information is used in thefollowing calculations since the height information is more reliable forthe face information desired in the ID photograph:Dh=(Y 12 −Y 11)/(Y 22 −Y 21)

Following proportional expressions stand in the coordinate values of theleft and right patterns in FIG. 5:Xt1 − X11:X11 − X12:X12 − Xt2 = w − X21:X21 − X22:X22Yt1 − Y11:Y11 − Y12:Y12 − Yt2 = h − Y21:Y21 − Y22:Y22

By substituting Dh in the foregoing proportional expressions, there canbe calculated the cutout rectangular area Rt defined by (Xt1, Yt1),(Xt2, Yt2) (step S203):Xt 1 =X 11+(w−X 21)×DhYt 1 =Y 11+(h−Y 21)×DhXt 2 =X 12 −X 22 ×DhYt 2 =Y 12 −Y 22 ×Dh

The above mentioned value Rt defines the cutout area which is requiredin fitting the face area R1 (X11, Y11), (X12, Y12) of the input imagedata into the noticeable area R2 (X21, Y21), (X22, Y22) of the IDphotograph of the real size (w, h). In this manner, from the designatedarea of the original image, there is acquired a cutout area differentfrom such designated area. The CPU 1 displays such cutout area Rt on thedisplay device 5 (step S204), and, after the confirmation by the user,causes the image output device 7 to print the cutout image (step S205).Through the above-described process, the present system can provide anID photograph in which the face is positioned with a desired size in adesired face position.

The present embodiment achieves improvement in the operability that theconcept of the necessary area in the ordinary life can be directlyapplied in designating the area on the input image data, and improvementin the process applicability that the arbitrary area designated by theoperation means can be fitted in an arbitrary position by arbitrarilysetting the coordinates of the noticeable area managed by the datatable.

Second Embodiment

FIG. 3 is a flow chart of the image processing method constituting thesecond embodiment of the present invention. Through the comparison ofthe control sequence shown in FIG. 3 with that shown in FIG. 2, it willbe understood that the information of the noticeable rectangular areaR2, acquired in the control sequence shown in FIG. 2 from the data tablein the step S202, is obtained by calculations in two steps S303 and S304in the flow shown in FIG. 3. In the following, therefore, there will beexplained the control sequence of the present embodiment correspondingto the step S303 and S304, with reference to FIG. 3.

The CPU 1 acquires the calculating expressions for calculating thenoticeable area in the output image, stored in the storage device 2. Thesystem adopts the following four expressions which are common for theordinary ID photograph (step S303):

-   -   F1) total size:face length=2:1    -   F2) face length:face width=27:23    -   F3) center of face width=center of width of ID photograph    -   F4) face length:distance between upper end of ID photograph and        top of head=27:7

By substituting the coordinate values of the images shown in FIG. 5 intothe expressions F1 to F4, there can be calculated the cutout rectangulararea Rt defined by (Xt1, Yt1), (Xt2, Yt2) as shown in the left-hand halfof FIG. 5 (step S304).

The present embodiment allows, in addition to the improvement in theoperability that the concept of the necessary area in the ordinary lifecan be directly applied in designating the area on the input image dataand the improvement in the process applicability that the arbitrary areadesignated by the operation means can be fitted in an arbitrary positionby arbitrarily setting the coordinates of the noticeable area managed bythe data table, to calculate the image cutout area solely from theactual height and width of the output image, thereby achieving furtherincrease in the operation freedom and further improvement in theautomated operation.

Third Embodiment

FIG. 4 is a flow chart of the image processing method constituting thethird embodiment of the present invention. Through the comparison of thecontrol sequence shown in FIG. 4 with that shown in FIG. 2, it will beunderstood that a sequence, after the display of the cutout image, ofreceiving an event of change to a different template by the data table,then returning to the step S402 for acquiring the output image data ofthe new template and repeating the subsequent operations is added to thecontrol sequence of FIG. 2.

The present embodiment achieves separation of the template data from theprogram codes thereby allowing to change the noticeable area of theoutput image without change in the program, and also improvement in theoperability that plural output images can be displayed in continuousmanner with the optimum image cutout area by only one designation of thearbitrary area on the input image data.

Fourth Embodiment

FIG. 7 is a flow chart of the image processing method constituting thefourth embodiment of the present invention. Through the comparison ofthe control sequence shown in FIG. 7 with that shown in FIG. 2, it willbe understood that steps S701, S702 and S703 in FIG. 7 are similar tothose S201, S202 and S203 in FIG. 2 and that a sequence starting from astep S704 is added to the control sequence shown in FIG. 2. In thefollowing, therefore, the sequence starting from the step S704 will beexplained with reference to FIG. 7.

The cutout rectangular area Rt=(Xt1, Xt2), (Xt2, Yt2) calculated in thestep S703 is the image cutout area required in fitting the face areaR1(X11, Y11)(X12, Y12) into the noticeable area R2(X21, Y21)(X22, Y22)of the ID photograph of the actual size (w, h). However, Rt may overflowfrom the area of the output image as shown in FIG. 8A if the originalimage is too small. It is not desirable to cut out and display a portionwhere the image data are practically absent.

Therefore, the CPU 1 discriminates whether Rt, calculated in the stepS703, is larger than the actual size of the image (step S704). Asalready explained in the step S203, the size ratio Dh between the inputand the output is based on the vertical length, so that the verticalsize of Rt calculated from such Dh can never be larger than the actualsize of the image. Therefore, in the step S704, it is only necessary tocompare the width of Rt with the actual width.

If the step S704 identifies that the width of Rt is within the actualwidth of the image, there are executed steps S705 to S707 and the CPU 1displays the area Rt as the final result on the display device 5.

On the other hand, if the step S704 identifies that the width of Rt islarger than the actual width of the image, it is necessary to reduce thecalculated value Rt of the image cutout area to the actual size Rt′ ofthe image while maintaining the aspect ratio and the central coordinateof the area unchanged. Therefore the CPU 1 calculates a reduction ratiod, for reducing the width of Rt to the actual width of the image,according to the following expression (step S705): $\begin{matrix}{d = {w \div \left( {{Xt2} - {Xt1}} \right)}} \\{= {w \div \left\lbrack {\left( {{X12} - {X11}} \right) - {\left\{ {\left( {{X22} - {X21}} \right) + w} \right\} \times {Dh}}} \right\rbrack}}\end{matrix}$

Then the image size ratio Dh between the input and the output iscorrected with the value d calculated in the step S705 as follows (stepS706):Dh′=Dh×d

Then the value Dh′, obtained in the step S706, is used for calculatingthe actual value Rt′=(Xt1′, Yt1′), (Xt2′, Yt2′) of the cutout area inthe following manner (step S707):Xt 1 ′=X 11+(w−X 21)×Dh′Yt 1 ′=Y 11+(h−Y 21)×Dh′Xt 2 ′=X 12 −X 22 ×Dh′Yt 2 ′=Y 12−Y 22 ×Dh′

The CPU 1 displays the area Rt′ as the final result on the displaydevice 5, as shown in FIG. 8D. The face is displayed larger than thecalculated value by the reduction ratio d, but there can be avoided theerror of displaying the improper area outside the output image data.

When the display of the cutout image area Rt or Rt′ is confirmed by theuser, the CPU 1 causes the image output device to print the cutout imagearea. Through the above-described process, the system of the presentembodiment can provide an ID photograph always utilizing the effectivedata.

Fifth Embodiment

FIG. 9 is a flow chart of the image processing method constituting thefifth embodiment of the present invention. Through the comparison of thecontrol sequence shown in FIG. 9 with that shown in FIG. 2, it will beunderstood that steps S901, S902 and S903 in FIG. 9 are similar to thoseS201, S202 and S203 in FIG. 2 and that a sequence starting from a stepS904 is added to the control sequence shown in FIG. 2. In the following,therefore, the sequence starting from the step S904 will be explainedwith reference to FIG. 9.

The cutout rectangular area Rt=(Xt1, Xt2),(Xt2, Yt2) calculated in thestep S903 is the image cutout area required in fitting the face areaR1(X11, Y11)(X12, Y12) into the notice area R2(X21, Y21)(X22, Y22) ofthe ID photograph of the actual size (w, h). However, such Rt may becomeimproper if the cutout rectangle Rt is very oblong and the size thereofis close to the face size as shown in FIG. 10A.

As an example, the input image size is same in FIGS. 10A and 10B, andthe length of the face is also same. Consequently the image cutout areaRt, determined in the steps S901 to S903 based on the vertical size,becomes same in FIG. 10A and in FIG. 10B. As the face of the personshown in FIG. 10A is narrow, the face area R1 can all be accommodated inthus determined Rt. On the other hand, as the face of the person in FIG.10B is wider, the face area R1 cannot be accommodated in thus determinedRt but the displayed image lacks the ears. Such image is undesirable forthe ID photograph.

Therefore, the CPU 1 discriminates whether Rt, calculated in the stepS903, is smaller than the corresponding area R2 (noticeable rectangulararea) of the face area in the output (step S904). As already explainedin the step S203, the size ratio Dh between the input and the output isbased on the vertical length, so that the vertical size of Rt calculatedfrom such Dh can never be smaller than the noticeable area. Therefore,in the step S904, it is only necessary to compare the width of Rt withthe width of the noticeable area.

If the step S904 identifies that the width of Rt is at least equal tothe width of the noticeable area, there are executed steps S905 and S906and the CPU 1 displays the area Rt on the display device 5.

On the other hand, if the step S904 identifies that the width of Rt issmaller than the width of the noticeable area, it is necessary toenlarge the calculated value Rt of the image cutout area to the actualsize Rt′ of the image while maintaining the aspect ratio and the centralcoordinate of the area unchanged, as shown in FIG. 10C. Therefore theCPU 1 calculates a reduction ratio K, for bringing the width of Rt tothe actual width of the noticeable area R2, according to the followingexpression (step S905):K=(X 22−X 21)+(Xt 2−Xt 1)=(X 22−X 21)−[(X 12−X 11)−{(X 22−X 21)+w}×Dh]

Then the coordinate values of Rt of the previously determined cutoutarea is corrected by enlargement with the ratio K determined in the step5905, while the center of the image and the aspect ratio are maintained(step S906), in the following manner:

-   -   Actual value Rt′ of the cutout area:        Rt′=(Xt 1′, Yt 1′), (Xt 2′, Yt 2′)    -   Central coordinate of Rt′:        C=(Cx, Cy)=((Xt 1+Xt 2)/2, (Yt 1+Yt 2)/2)    -   Size of Rt′:        S=(Sx, Sy)=((Xt 2−Xt 1)×K, (Yt 2−Yt 1)×K)        Xt 1′=Cx−Sx/2        Yt 1′=Cy−Sy/2        Xt 2′=Cx+Sx/2        Yt 2′=Cy+Sy/2

The CPU 1 displays the area Rt′ on the display device 5. The image isdisplayed in a range indicated as “cutout image based on expression10-3” in FIG. 10C. The face is displayed smaller than the calculatedvalue by the ratio K, but there can be avoided the error such as partiallack of the face, as indicated by “cutout image based on expression10-2” in FIG. 10B.

When the display of the cutout image area Rt or Rt′ is confirmed by theuser, the CPU 1 causes the image output device to print the cutout imagearea. Through the above-described process, the system of the presentembodiment can provide an ID photograph always utilizing the effectivedata.

Sixth Embodiment

The foregoing fourth and fifth embodiments have been describedseparately, but the system may be so constructed as to execute doublechecking for achieving the two functions of these embodiments (formaintaining the cutout rectangular area Rt at least equal to thenoticeable area R2 and accommodating it within the actual image area).

In the fourth to sixth embodiments, the system automatically identifiesthat the cutout rectangular area Rt determined in the initialcalculation is inadequate and executes the display with theappropriately corrected Rt′, but the system may also be so modified asto display an alarm message when the inadequate cutout area isidentified and to cause the user to change the input image or tore-designate the face area. The system may be further so modified thatthe user can select, in case such alarm message is displayed, whetherthe process is continued according to the automatic correction of thesystem or the process is repeated from the beginning by the change ofthe input image or by the re-designation of the face area by the user.However, the present invention is not limited by the content of suchalarm message or by the method of displaying such alarm message.Similarly the present invention is not limited by the alarm method oralarm message for causing the user to change the input image or tore-designate the face area, or the process sequence for entering suchprocess, and the present invention is likewise effectively applicable toany of these modifications.

Other Embodiments

The values of the ratios in the proportional expressions F1 to F4employed in the second embodiment for explaining the example shown inFIG. 3 are not restrictive and may be changed according to the purpose.Also the values of such proportional expressions or the expressionsthemselves may be not fixed within the program but may be madearbitrarily modifiable by the user through the GUI. For example,automatic image fitting with higher precision may be realized byselecting the length-width ratio of the face according to the face orsex of the object image, utilizing a fact that such length-width ratioof the face contour depends on the human race and the sex.

Also there may be provided means for fine adjustment of the acquiredcutout area. Such means can be realized by the trimming functionavailable in most image editing apparatus.

Also the noticeable area on the input image data may be held as dataassociated with the input image. More specifically, based on a fact thatthe object image taken as the ID photograph in an ID photographingapparatus or in a photo studio is prepared in consideration of the sizeand position of the face at the photo taking stage, it is intended toexecute the image fitting process by skipping an operation by the user,assuming that the noticeable area is already set in a predeterminedlocation of the input image. Thus the system of the present inventionmay further be modified in such a manner as to have the noticeable area,specific to each ID photograph preparation system or each photo takingsystem of the photo studio, as a database and to realize optimum facefitting through automatic reading of the data of the noticeable area, byentering “photo taking path” at the image entry. However theconfiguration of the ID photograph preparation system is notrestrictive, and the photo taking may be achieved by any photo takingapparatus or any camera.

In the foregoing embodiments, there has been assumed a configuration inwhich the CPU 1 reads and executes a computer program stored in theprogram storage device 8, but the hardware configuration shown in FIG. 1need not necessarily be constructed by the devices exclusive to theforegoing embodiments and may be constructed with a personal computer ofgeneral use.

Thus the foregoing embodiments allow to obtain an appropriate cutoutarea with simple operations.

The present invention has been explained by certain preferredembodiments. However the present invention is by no means limited tosuch embodiments but is naturally subject to various modifications andapplications within the scope and spirit of the appended claims.

1. An image processing method comprising: a designation step, ofdesignating a rectangle circumscribed about a face area on an originalimage including a human face; an acquisition step, of acquiring thevertical length and the horizontal length of the rectangle designated insaid designation step; and a determination step, of determining acut-out area including the face area, based on the vertical length andthe horizontal length, wherein said determination step includes: acalculation step, of calculating the horizontal length of the area to becut out, according to the vertical length of the cut-out area, in such amanner that the area to be cut out has a predetermined aspect ratio, adiscrimination step, of discriminating whether the horizontal length ofthe area to be cut out calculated in said calculation step can be cutout from the original image, and a re-calculation step, in which, in acase where it is identified in said discrimination step that thehorizontal length of the area to be cut out is smaller than thehorizontal length of the face area, the vertical length of the outputarea is re-calculated in such a manner that the face area is included inthe cut-out area.
 2. A method according to claim 1, wherein saiddetermination step includes determining the range in the verticaldirection of an area to be cut out, including the face area, accordingto a predetermined data table, based on the vertical length and thepositional information in the vertical direction of the rectangle.
 3. Amethod according to claim 2, wherein said determination step includes astep of determining, based on the horizontal length of the calculatedcutout area, the range in the horizontal direction of said area to becut out in such a manner that the horizontal length becomes laterallysymmetrical with respect to the center of the rectangle in thehorizontal direction.
 4. A method according to claim 2, wherein thepredetermined data table is prepared in advance in plural units.
 5. Amethod according to claim 4, further comprising a selection step, ofselecting one of the plural predetermined data tables.
 6. An imageprocessing apparatus comprising: designation means for designating arectangle circumscribed about a face area on an original image includinga human face; acquisition means for acquiring the vertical length andthe horizontal length of the rectangle designated by said designationmeans; and determination means for determining a cut-out area includingthe face area, based on the vertical length and the horizontal length,wherein said determination means further comprises: calculation means,adapted to calculate the horizontal length of the area to be cut out,according to the vertical length of the cut-out area, in such a mannerthat the area to be cut out has a predetermined aspect ratio,discrimination means, adapted to discriminate whether the horizontallength of the area to be cut out calculated by said calculation meanscan be cut out from the original image, and re-calculation meansadapted, in a case where said discrimination means identify that thehorizontal length of the area to be cut out is smaller than thehorizontal length of the face area, to re-calculate the vertical lengthof the output area in such a manner that the face area is included inthe cut-out area.
 7. An apparatus according to claim 6, wherein saiddetermination means is adapted to determine the range in the verticaldirection of an area to be cut out, including the face area, accordingto a predetermined data table, based on the vertical length and thepositional information in the vertical direction of the rectangle.
 8. Anapparatus according to claim 7, wherein said determination means isadapted, based on the horizontal length of the calculated cut-out area,to determine the range in the horizontal direction of the area to be cutout in such a manner that the horizontal length becomes laterallysymmetrical with respect to the center of the rectangle in thehorizontal direction.
 9. An apparatus according to claim 7, wherein saidpredetermined data table is prepared in advance in plural units.
 10. Anapparatus according to claim 9, further comprising selection means forselecting one of said plural predetermined data tables.
 11. A computerreadable memory medium storing a program for causing a computer toexecute: a designation step, of designating a rectangle circumscribedabout a face area on an original image including a human face; anacquisition step, of acquiring the vertical length and the horizontallength of the rectangle designated in said designation step; and adetermination step, of determining a cut-out area including the facearea, based on the vertical length and the horizontal length, whereinsaid determination step includes: a calculation step, of calculating thehorizontal length of the area to be cut out, according to the verticallength of the cutout area, in such a manner that the area to be cut outhas a predetermined aspect ratio, a discrimination step, ofdiscriminating whether the horizontal length of the area to be cut outcalculated in said calculation step can be cut out from the originalimage, and a re-calculation step, in which, in a case where it isidentified in said discrimination step that the horizontal length of thearea to be cut out is smaller than the horizontal length of the facearea, the vertical length of the output area is re-calculated in such amanner that the face area is included in the cut-out area.
 12. A memorymedium according to claim 11, wherein said determination step includesdetermining the range in the vertical direction of an area to be cutout, including the face area, according to a predetermined data table,based on the vertical length and the positional information in thevertical direction of the rectangle.
 13. A memory medium according toclaim 12, wherein said determination step includes a step ofdetermining, based on the horizontal length of the calculated cutoutarea, the range in the horizontal direction of the area to be cut out insuch a manner that the horizontal length becomes laterally symmetricalwith respect to the center of the rectangle in the horizontal direction.14. A memory medium according to claim 12, wherein the predetermineddata table is prepared in advance in plural units.
 15. A memory mediumaccording to claim 14, wherein said program further comprises aselection step, of selecting one of the plural predetermined datatables.
 16. An image processing method comprising: a designation step,of designating a rectangle circumscribed about a face area on anoriginal image including a human face; an acquisition step, of acquiringthe vertical length and the horizontal length of the rectangledesignated in said designation step; and a determination step, ofdetermining a cut-out area including the face area, based on thevertical length and the horizontal length of a predetermined area sothat a cut-out area can be held within a noticeable area on output imagedata, wherein said determination step includes: a calculation step, ofcalculating the horizontal length of the area to be cut out, accordingto the vertical length of the cut-out area, in such a manner that thearea to be cut out has a predetermined aspect ratio, a discriminationstep, of discriminating whether the horizontal length of the area to becut out calculated in said calculation step can be cut out from theoriginal image, and a re-calculation step, in which, in a case where itis identified in said discrimination step that the horizontal length ofthe area to be cut out is larger than the horizontal length of theoriginal image, the vertical length of the cut-out area is re-calculatedin such a manner that the cut-out area is included in the original imageand held within the noticeable area on the output image data.
 17. Animage processing apparatus comprising: designation means for designatinga rectangle circumscribed about a face area on an original imageincluding a human face; acquisition means for acquiring the verticallength and the horizontal length of the rectangle designated by saiddesignation means; and determination means for determining a cut-outarea including the face area, based on the vertical length and thehorizontal length of a predetermined area so that the cut-out area canbe held within a noticeable area on output image data, wherein saiddetermination means further comprises: calculation means for calculatingthe horizontal length of the area to be cut out, according to thevertical length of the cut-out area, in such a manner that the area tobe cut out has a predetermined aspect ratio, discrimination means fordiscriminating whether the horizontal length of the area to be cut outcalculated by said calculation means can be cut out from the originalimage, and re-calculation means adapted, in a case where it isidentified by said discrimination means that the horizontal length ofthe area to be cut out is larger than the horizontal length of theoriginal image, to re-calculate the vertical length of the cut-out areain such a manner that the cut-out area is included in the original imageand held within the noticeable area on the output image data.
 18. Acomputer readable memory medium storing a program for causing a computerto execute: a designation step, of designating a rectangle circumscribedabout a face area on an original image including a human face; anacquisition step, of acquiring the vertical length and the horizontallength of the rectangle designated in said designation step; and adetermination step, of determining a cut-out area including the facearea, based on the vertical length and the horizontal length of apredetermined area so that the cut-out area can be held within anoticeable area on output image data, wherein said determination stepincludes: a calculation step, of calculating the horizontal length ofthe area to be cut out, according to the vertical length of the cut-outarea, in such a manner that the area to be cut out has a predeterminedaspect ratio, a discrimination step, of discriminating whether thehorizontal length of the area to be cut out calculated in saidcalculation step can be cut out from the original image, and are-calculation step, in which, in a case where it is identified in saiddiscrimination step that the horizontal length of the area to be cut outis larger than the horizontal length of the original image, the verticallength of the cut-out area is re-calculated in such a manner that thecut-out area is included in the original image and held within thenoticeable area on the output image data.